//
//  YQMeViewController.m
//  iyuanqi
//
//  Created by czl on 2017/7/27.
//  Copyright © 2017年 czl. All rights reserved.
//

#import "YQMeViewController.h"
#import "YQLoginViewController.h"

@interface YQMeViewController ()

@end

@implementation YQMeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"我的";
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    if (![[NSUserDefaults standardUserDefaults] objectForKey:@"uid"]) {
        YQLoginViewController* vc = [[YQLoginViewController alloc]init];
        vc.navigationItem.hidesBackButton = YES;
        [self.navigationController pushViewController:vc animated:NO];
    }
}

@end
